package com.sakura.serivce;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sakura.dto.DishDto;
import com.sakura.pojo.Category;
import com.sakura.pojo.Dish;
import com.sakura.pojo.DishFlavor;

import java.util.List;

public interface DishService extends IService<Dish> {
    void saveDishAndDishFlavor(DishDto dishDto);

    DishDto getByIdWithDishAndFlavor(Long id);

    void updateByIdWithFlavor(DishDto dishDto);

    void disableById(Integer status, Long[] ids);

    List<DishDto> listByCategoryId(Long categoryId);
}
